<form id="edit_categories_form" method="POST" action="<{$smarty.const.APPLICATION_URL}>categories/edit/">
	<table border="0" cellpadding="10px">
		<tr>
			<td>Name</td>
			<td>
				<input id="cat_name" name="cat_name" size=30 value="<{$current_data.cat_name}>"/>
				<input id="cat_id" name="cat_id" size=30 value="<{$current_data.cat_id}>" style="display:none"/>
			</td>
		</tr>
		
		<tr>
			<td>Category Parent</td>
			<td>
			<select id="cat_id" name="cat_id">
					<{foreach from=$categoriesList item=phantu}>
						<option value="<{$phantu.cat_id}>" 
				 		<{if $phantu.cat_id==$current_data.cat_id}> 
							selected = "true"
						<{/if}>
						>
							<{$phantu.cat_name}>
						</option>					
					<{/foreach}>
				</select>
			<!--<select id="cat_cat_id" name="cat_cat_id">
					<option value="0">[optional]</option>
					<{foreach from=$categoriesList item=phantu}>
						<option value="<{$phantu.cat_id}>"><{$phantu.cat_name}></option>					
					<{/foreach}>
				</select>-->
			</td>
		</tr>
		
		<tr>
			<td colspan=2 align="left">
				<input type="submit" id="edit_category_btn" name="edit_category_btn" value="Edit"/>
			</td>
		</tr>
	</table>
</form>